package com.learnJava;

import java.util.zip.CRC32;

/**
 * Created by Aqc on 2017/7/8.
 */
class Creature {
    private String name;

    public Creature(String name) {
        System.out.println("Creature!");
    }

}

class Animal extends Creature {
    public Animal() {
        super("God");
        System.out.println("Animal!");
    }
}

public class MyExtendsClass {
    public static void main(String arg[]) {
        Creature an = new Creature("Godiss");
        System.out.println(an instanceof Animal);
    }
}

